package gameMechanics;


import java.util.ArrayList;

public class BoardCards {
	
	private ArrayList<String> tableCards;
	private ArrayList<PocketCards> playerPocketCards;
	private ArrayList<String> allCurrentBoardCards;
	
	public BoardCards(){
		tableCards = new ArrayList<String>(4);
		playerPocketCards = new ArrayList<PocketCards>();
		allCurrentBoardCards = new ArrayList<String>();
	}
	public void addDealtCardToTableCards(String s){
		tableCards.add(s);
		allCurrentBoardCards.add(s);
	}
	public void addPlayerHandtoPlayerPocketCardList(PocketCards pc){
		playerPocketCards.add(pc);
		allCurrentBoardCards.addAll(pc.getPlayerHand());
	}
	public void clearTableCards(){
		tableCards.clear();
	}
	public void clearPlayerHandFromList(int playerIdentifier){
		playerPocketCards.remove(playerIdentifier);
	}
	public void clearAllPlayerHands(){
		playerPocketCards.clear();
	}
	public ArrayList<String> getTableCards(){
		return tableCards;
	}
	public ArrayList<PocketCards> getPlayerPocketCards(){
		return playerPocketCards;
	}
	public ArrayList<String> checkBoardCards(){
		return allCurrentBoardCards;
	}
}
